package com.yj.lottery_system.controller.param;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {
    //当前页，默认1
    private Integer currentPage = 1;
    //当前页数量，默认10
    private Integer pageSize = 10;
    //计算偏移量
    public Integer offset() {
        return  (currentPage-1) * pageSize;
    }
}
